<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>微博详情</title>
</head>
<body>
<h1>微博详情页面</h1>
<div>
    <h2>
        {{weibo.nickname}}说:{{weibo.content}}
    </h2>
    <img :src="weibo.url" width="200" alt="">
    <hr>
    <h1>评论相关</h1>
    <input type="text" placeholder="评论内容...">
    <input type="button" value="发表评论">
</div>

<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let v = new Vue({
        el: "body>div",
        data: {
            weibo: {}
        },
        methods: {},
        created: function () {
            axios.get("weibo/selectById" + location.search).then(function (response) {
                v.weibo = response.data;
            })
        }
    })
</script>
</body>
</html>